.Input.SearchInput {
  --compact-focus-width: 190px;
  --spacing: 6px 6px 6px 10px;

  max-width: 900px;
  min-width: 220px;

  > label {
    color: inherit;
    background: none;
    border: none;
    border-radius: $radius;
    box-shadow: 0 0 0 1px $halfGray;
    padding: var(--spacing);

    .Icon {
      height: $margin * 2;
    }
  }

  &.compact {
    min-width: 0;

    .input {
      transition: width 150ms;

      &:placeholder-shown:not(:focus) {
        transition-duration: 100ms;
        width: 0;
        margin: 0;
      }

      &:focus, &:not(:placeholder-shown) {
        width: var(--compact-focus-width);
      }
    }
  }
}